home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / CUTILSLI / UTILITYL / TEETIME_.C < prev    next >
Text File  |  1987-11-05  |  1KB  |  47 lines

  1. /**************************************************************************
  2. *    Filename:    TeeTime About.c                                                                 
  3. *    Purpose:    Display the About Item in TeeTime with online Help.                      
  4. *    Authors:    Robert E. Neville                                                       
  5. *    Date:        November 5, 1987                                                        
  6. *    Functions:     about().
  7. *    Version    1.0                                                                            
  8. *    Copyright ⌐ 1987     Hummingbird Graphics & Software                                  
  9. ***************************************************************************/
  10.  
  11. #include <DialogMgr.h>
  12.  
  13. #define ABOUTDLOG    300            /* Dialog RSRC for Help */
  14. #define HELPSTR        600            /* STR# RSRC for Help */
  15. #define ABOUTOK        1            /* About OK Button */
  16. #define ABOUTHELP    2            /* Button for Help in About Box */
  17.  
  18.  
  19. /*************************************************
  20. *    Function:    about()
  21. *    Purpose:    To display info about the TeeTime.
  22. *    Passed:        Nothing.
  23. *    Returned:     Nothing.            
  24. **************************************************/
  25.  
  26. void about()
  27. {
  28.     DialogPtr     dp;
  29.     int         item;
  30.     
  31.     dp = GetNewDialog(ABOUTDLOG, 0, -1);
  32.     ModalDialog(0, &item);
  33.     switch (item)
  34.     {
  35.         case ABOUTOK:
  36.             DisposDialog(dp);
  37.             break;
  38.         case ABOUTHELP:
  39.             DisposDialog(dp);
  40.             do_help(HELPSTR);
  41.             break;
  42.         default:
  43.             break;
  44.     }
  45. }    /* End of about */
  46.  
  47. /**********     End of file     **********/